<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
	<link type="text/css" rel="stylesheet" th:href="@{/css/bootstrap-3.3.7-dist/css/style2.css}" />
	<link type="text/css" rel="stylesheet" th:href="@{/css/bootstrap-3.3.7-dist/css/public.css}" />

</head>
<body style="background: #f0f0f0">
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong>
		<span>订单管理页面 >> 订单修改页面</span>
	</div>
	<div class="providerAdd">
		<form id="billForm" name="billForm" method="post" th:action="@{/user/modifyBill}">

			<input type="hidden" name="id" th:value="${session.bill.id}">
			<input type="hidden" name="creationdate" th:value="${session.bill.creationdate}">
			<input type="hidden" name="createdby" th:value="${session.bill.createdby}">
			<input type="hidden" name="productdesc" th:value="${session.bill.productdesc}">
			<!--div的class 为error是验证错误，ok是验证成功-->
			<div class="">
				<label for="billCode">订单编码：</label>
				<input type="text" name="billcode" id="billCode" th:value="${session.bill.billcode }" readonly="readonly">

			</div>
			<div>
				<label for="productName">商品名称：</label>
				<input type="text" name="productname" id="productName" th:value="${session.bill.productname }">
				<font color="red"></font>
			</div>
			<div>
				<label for="productUnit">商品单位：</label>
				<input type="text" name="productunit" id="productUnit" th:value="${session.bill.productunit }">
				<font color="red"></font>
			</div>
			<div>
				<label for="productCount">商品数量：</label>
				<input type="text" name="productcount" id="productCount" th:value="${session.bill.productcount }">
				<font color="red"></font>
			</div>
			<div>
				<label for="totalPrice">总金额：</label>
				<input type="text" name="totalprice" id="totalPrice" th:value="${session.bill.totalprice }">
				<font color="red"></font>
			</div>


			<div class="">
				<label for="billCode">供应商：</label>
				<input type="text" name="proname" id="providerid" th:value="${session.bill.proname }" >
			</div>
			<div class="">
				<label for="billCode"></label>
				<input type="hidden" name="providerid" id="pro" th:value="${session.bill.providerid }" >
			</div>
<!--			<div>-->
<!--				<label for="providerId">供应商：</label>-->
<!--				<input type="hidden" th:value="${session.bill.providerid }" id="pid" />-->
<!--				<select name="providerid" >-->
<!--					<option value="0">&#45;&#45;请选择&#45;&#45;</option>-->
<!--					<option  th:each="billpro,billstat:${providerLists}" th:value="${billpro.id}" th:if="${billstat.count}==${session.bill.providerid}" th:text="${billpro.proName}" check=""></option>-->
<!--					<option  th:each="billpro,billstat:${providerLists}" th:value="${billpro.id}" th:if="${billstat.count}!=${session.bill.providerid}" th:text="${billpro.proName}"></option>-->
<!--				</select>-->
<!--				<font color="red"></font>-->
<!--			</div>-->
			<div>
				<label >是否付款：</label>
				<select name="ispayment" id="ispayment">
					<option value="1" th:if="${session.bill.ispayment} eq 1" th:with="ispay='未付款'" th:text="${ispay}"></option>
					<option value="2" th:if="${session.bill.ispayment} eq 2" th:with="ispay='已付款'" th:text="${ispay}"></option>
					<option value="1" th:if="${session.bill.ispayment} ne 1" th:with="ispay='未付款'" th:text="${ispay}"></option>
					<option value="2" th:if="${session.bill.ispayment} ne 2" th:with="ispay='已付款'" th:text="${ispay}"></option>
				</select>
			</div>
			<div class="providerAddBtn">
				<button  name="baocun" value="" style="height: 30px;width: 80px;background: #f0f0f0">保存</button>
			</div>
		</form>
		<form th:action="@{/user/billlist}">
			<button id="back" name="back" value="" style="margin-left: 245px;height: 30px;width: 80px;background: #f0f0f0">返回</button>
		</form>
	</div>

</div>


</body>
</html>